package com.example.devtool.core.exception;

import lombok.Data;

import java.io.Serial;

/**
 * @author zhuliangxuan
 * @date 2022/5/22 23:05
 */
@Data
public class BizException extends RuntimeException {
    @Serial
    private static final long serialVersionUID = -2554598561561335249L;

    private String moduleName;
    private String desc;

    public BizException(String moduleName, String desc, String message) {
        super(message);
        this.moduleName = moduleName;
        this.desc = desc;
    }
}
